﻿using WH.Model.Bases;
using WH.Common.Bases.IBase;
using SqlSugar;

namespace WH.Model.Systems
{
    ///<summary>
    ///系统用户登录信息表
    ///</summary>
    [SugarTable("sys_user_logon")]
    public class UserLogonEntity : BaseOrgAuditableEntity, IOrganizationFilter
    {
        /// <summary>
        /// 用户密码
        /// </summary>           
        [SugarColumn(ColumnName = "user_password", IsNullable = false, Length = 50, ColumnDescription = "用户密码")]
        public string? Password { get; set; }

        /// <summary>
        /// 用户秘钥
        /// </summary>           
        [SugarColumn(ColumnName = "user_secretkey", IsNullable = false, Length = 50, ColumnDescription = "用户秘钥")]
        public string SecretKey { get; set; } = null!;

        /// <summary>
        /// 机构id
        /// </summary>           
        [SugarColumn(ColumnName = "organization_id", IsNullable = false, Length = 50, ColumnDescription = "机构id")]
        public override string OrganizationId { get; set; } = null!;
    }
}
